package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.target.dao.SonTargetRepository;
import com.eduction.modules.target.entity.SonTarget;
import com.eduction.service.SonTargetService;
@Service
public class SonTargetServiceImpl implements SonTargetService {

	@Autowired
	private SonTargetRepository sonTargetRepository;
	
	@Override
	public List<SonTarget> querySonTargetByFid(String fid) throws SQLException {
		List<SonTarget> list = sonTargetRepository.querySonTargetByFid(fid);
		return list;
	}

	@Override
	public SonTarget querySonTargetByPid(String pid) throws SQLException {
		SonTarget st = sonTargetRepository.querySonTargetByPid(pid);
		return st;
	}

	@Override
	public void saveSonTargetInfo(SonTarget st) {
		sonTargetRepository.saveSonTargetInfo(st);

	}

}
